package com.xf.system.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * @author xiefengf
 * @version 1.0
 * @date 2024/2/1 17:00
 */
@Schema(description = "菜单权限表")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_menu")
public class Menu extends BaseModel {

    @Schema(description = "菜单名称")
    @TableField(value = "menu_name")
    private String menuName;

    @Schema(description = "父菜单ID")
    @TableField(value = "parent_id")
    private Long parentId;

    @Schema(description = "显示顺序")
    @TableField(value = "order_num")
    private Integer orderNum;

    @Schema(description = "路由地址")
    @TableField(value = "path")
    private String path;

    @Schema(description = "组件路径")
    @TableField(value = "component")
    private String component;

    @Schema(description = "路由参数")
    @TableField(value = "query")
    private String query;

    @Schema(description = "菜单类型（M目录 C菜单 F按钮）")
    @TableField(value = "menu_type")
    private String menuType;

    @Schema(description = "菜单状态（0显示 1隐藏）")
    @TableField(value = "visible")
    private String visible;

    @Schema(description = "菜单状态（0正常 1停用）")
    @TableField(value = "status")
    private String status;

    @Schema(description = "权限标识")
    @TableField(value = "perms")
    private String perms;

    @Schema(description = "菜单图标")
    @TableField(value = "icon")
    private String icon;

}
